//

// (  )
//

package com.tools.acceleratecore.logic.common.impl;

import android.content.Context;
import android.graphics.drawable.Drawable;
import com.tools.acceleratecore.AccelerateCoreFactory;
import com.tools.acceleratecore.logic.common.intf.IAppItem;
import com.tools.acceleratecore.xlib.util.UtilApp;

public class AppItem implements IAppItem {
    private Context mContext = null;
    private String mPackageName = null;

    public AppItem() {
        this.mContext = AccelerateCoreFactory.getApplication();
        this._init();
    }

    private void _init() {
    }

    public String getAppPackageName() {
        return this.mPackageName;
    }

    public String getAppName() {
        return UtilApp.getApplicationName(this.mContext, this.mPackageName);
    }

    public Drawable getAppIcon() {
        return UtilApp.getApplicationIcon(this.mContext, this.mPackageName);
    }

    public boolean isSystemApp() {
        return UtilApp.isSystemApp(this.mContext, this.mPackageName);
    }

    public void setAppPackageName(String strPackageName) {
        this.mPackageName = strPackageName;
    }
}
